#! /bin/bash

function getFirefoxDir ()
{
    
}
FirefoxDir=$HOME/.mozilla/firefox/*.default #firefox *.default directory for the user information 
BBDir=$FirefoxDir/bookmarkbackups #bookmarkbackups directory
todaysBB=$BBDir/bookmarks-$(date +%Y)-$(date +%m)-$(date +%d).json #todays bookmarkbackup

getUri(){
    for grain1 in $(cat $todaysBB | cut -d"{" -f1-); do 
	grain2= $(echo $grain1 | cut -d":" -f1-)
	echo "found url: $grain2 \n" 
	echo ""
    done
}

getBB(){
    if [ -x $todaysBB ]; then
	echo "found bookmarkbackups at: $todaysBB !"
	getUri
    else
	echo "file not found"
    fi
}

getBB
